/*    */ package com.lmpop.frame.util;
/*    */ 
/*    */ import com.redfin.sitemapgenerator.WebSitemapUrl;
/*    */ import com.redfin.sitemapgenerator.WebSitemapUrl.Options;
/*    */ import java.net.URL;
/*    */ import org.apache.commons.lang.StringUtils;
/*    */ 
/*    */ public class ExtWebSiteMapUrl extends WebSitemapUrl
/*    */   implements CrawlUrl
/*    */ {
/* 10 */   private boolean canCrawl = true;
/*    */ 
/*    */   public ExtWebSiteMapUrl(WebSitemapUrl.Options options)
/*    */   {
/* 14 */     super(options);
/*    */   }
/*    */ 
/*    */   public boolean canCrawl() {
/* 18 */     return this.canCrawl;
/*    */   }
/*    */ 
/*    */   public void disble() {
/* 22 */     this.canCrawl = false;
/*    */   }
/*    */ 
/*    */   public boolean equals(Object obj)
/*    */   {
/* 29 */     if (obj == null) {
/* 30 */       return false;
/*    */     }
/*    */ 
/* 33 */     if ((obj instanceof ExtWebSiteMapUrl)) {
/* 34 */       ExtWebSiteMapUrl url = (ExtWebSiteMapUrl)obj;
/* 35 */       return StringUtils.equals(url.getUrlStr(), getUrlStr());
/*    */     }
/*    */ 
/* 38 */     return false;
/*    */   }
/*    */ 
/*    */   public String getUrlStr() {
/* 42 */     return super.getUrl().toExternalForm();
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.frame.util.ExtWebSiteMapUrl
 * JD-Core Version:    0.6.0
 */